package canglang.monitor.dept.service;

import canglang.monitor.dept.model.DeptModel;
import canglang.monitor.core.base.pagination.PaginatedListHelper;
import canglang.monitor.dept.to.SearchTO;

public interface DeptMgr {

    public DeptModel addDept(DeptModel deptModel);

    public DeptModel getDept(String deptName);

    public DeptModel getDept(int deptId);

    public DeptModel saveDept(DeptModel deptModel);

    public void deleteDept(int deptId);

    public PaginatedListHelper search(PaginatedListHelper helper, SearchTO searchTO);

}
